import React from 'react';
import {inject, observer} from 'mobx-react';
import IndexPage from "./IndexPage/IndexPage";

function App({appStore}) {
    return (
        <>
            <div onClick={appStore.setCount}>{appStore.count}</div>
            <IndexPage/>
        </>
    )
}

export default inject('appStore')(observer(App));
